package com.football.springboot.common;

import com.football.springboot.entity.TeamData;

import java.math.BigDecimal;

public class KeepTwoDecimal {
   public Double KeepTwoDecimal(Double one){
       if (one!=null){
           BigDecimal two = new BigDecimal(one);
           double three = two.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue();
           return three;
       }else{
           return 0.0;
       }
   }
}
